import request from '@/utils/request'

// 港口列表
export function portList(data) {
  return request({
    url: 'basics/port/index',
    method: 'post',
    data: data
  })
}

// 港口添加
export function portAdd(data) {
  return request({
    url: 'basics/port/create',
    method: 'post',
    data: data
  })
}

// 港口编辑
export function portEdit(data) {
  return request({
    url: 'basics/port/update',
    method: 'post',
    data: data
  })
}

// 港口删除
export function portDel(data) {
  return request({
    url: 'basics/port/delete',
    method: 'post',
    data: data
  })
}

// 附加数据列表
export function adddataList(data) {
  return request({
    url: 'basics/adddata/index',
    method: 'post',
    data: data
  })
}

// 附加数据列表
export function getTreeData1(data) {
  return request({
    url: 'basics/adddata/getTreeData1',
    method: 'get',
    data: data
  })
}

// 附加数据列表
export function fetchFileData(data) {
  return request({
    url: 'basics/adddata/fetchFileData',
    method: 'post',
    data
  })
}

// 附加数据添加
export function adddataAdd(data) {
  return request({
    url: 'basics/adddata/create',
    method: 'post',
    data: data
  })
}

// 附加数据编辑
export function adddataEdit(data) {
  return request({
    url: 'basics/adddata/update',
    method: 'post',
    data: data
  })
}

// 附加数据删除
export function adddataDel(data) {
  return request({
    url: 'basics/adddata/delete',
    method: 'post',
    data: data
  })
}

// 查询其他信息
export function getOther(data) {
  return request({
    url: 'basics/AddData/getOther',
    method: 'post',
    data: data
  })
}

// 内部类型 列表
export function insideTypeList(data) {
  return request({
    url: 'basics/InsideType/index',
    method: 'post',
    data: data
  })
}

// 内部类型 添加
export function insideTypeAdd(data) {
  return request({
    url: 'basics/InsideType/create',
    method: 'post',
    data: data
  })
}

// 内部类型 修改
export function insideTypeEdit(data) {
  return request({
    url: 'basics/InsideType/update',
    method: 'post',
    data: data
  })
}

// 内部类型 删除
export function insideTypeDel(data) {
  return request({
    url: 'basics/InsideType/delete',
    method: 'post',
    data: data
  })
}

// 内部类型 查询
export function getInsideType(data) {
  return request({
    url: 'basics/InsideType/getInsideType',
    method: 'post',
    data: data
  })
}

// 货币列表
export function currencyList(data) {
  return request({
    url: 'basics/currency/index',
    method: 'post',
    data: data
  })
}

// 货币添加
export function currencyAdd(data) {
  return request({
    url: 'basics/currency/create',
    method: 'post',
    data: data
  })
}

// 货币修改
export function currencyEdit(data) {
  return request({
    url: 'basics/currency/update',
    method: 'post',
    data: data
  })
}

// 货币删除
export function currencyDel(data) {
  return request({
    url: 'basics/currency/delete',
    method: 'post',
    data: data
  })
}

// 查询全部货币
export function getCurrency(data) {
  return request({
    url: 'basics/currency/getCurrency',
    method: 'post',
    data: data
  })
}

// 拼车方式列表
export function carpoolingList(data) {
  return request({
    url: 'basics/carpoolingmode/index',
    method: 'post',
    data: data
  })
}

// 拼车方式添加
export function carpoolingAdd(data) {
  return request({
    url: 'basics/carpoolingmode/create',
    method: 'post',
    data: data
  })
}

// 拼车方式修改
export function carpoolingEdit(data) {
  return request({
    url: 'basics/carpoolingmode/update',
    method: 'post',
    data: data
  })
}

// 拼车方式删除
export function carpoolingDel(data) {
  return request({
    url: 'basics/carpoolingmode/delete',
    method: 'post',
    data: data
  })
}

// 汇率列表
export function exchangerateList(data) {
  return request({
    url: 'basics/rate/index',
    method: 'post',
    data: data
  })
}

// 汇率添加
export function exchangerateAdd(data) {
  return request({
    url: 'basics/rate/create',
    method: 'post',
    data: data
  })
}

// 汇率修改
export function exchangerateEdit(data) {
  return request({
    url: 'basics/rate/update',
    method: 'post',
    data: data
  })
}

// 汇率删除
export function exchangerateDel(data) {
  return request({
    url: 'basics/rate/delete',
    method: 'post',
    data: data
  })
}

// 汇率查询
export function getRate(data) {
  return request({
    url: 'basics/rate/getRate',
    method: 'post',
    data: data
  })
}

// 公司列表
export function companyList(data) {
  return request({
    url: 'basics/company/index',
    method: 'post',
    data: data
  })
}

// 公司添加
export function companyAdd(data) {
  return request({
    url: 'basics/company/create',
    method: 'post',
    data: data
  })
}

// 公司修改
export function companyEdit(data) {
  return request({
    url: 'basics/company/update',
    method: 'post',
    data: data
  })
}

// 公司删除
export function companyDel(data) {
  return request({
    url: 'basics/company/delete',
    method: 'post',
    data: data
  })
}

// 费用列表
export function expenseList(data) {
  return request({
    url: 'basics/expensetype/index',
    method: 'post',
    data: data
  })
}

// 费用添加
export function expenseAdd(data) {
  return request({
    url: 'basics/expensetype/create',
    method: 'post',
    data: data
  })
}

// 费用修改
export function expenseEdit(data) {
  return request({
    url: 'basics/expensetype/update',
    method: 'post',
    data: data
  })
}

// 费用删除
export function expenseDel(data) {
  return request({
    url: 'basics/expensetype/delete',
    method: 'post',
    data: data
  })
}

// 国家列表
export function countryList(data) {
  return request({
    url: 'basics/country/index',
    method: 'post',
    data: data
  })
}

// 国家添加
export function countryAdd(data) {
  return request({
    url: 'basics/country/create',
    method: 'post',
    data: data
  })
}

// 国家修改
export function countryEdit(data) {
  return request({
    url: 'basics/country/update',
    method: 'post',
    data: data
  })
}

// 国家删除
export function countryDel(data) {
  return request({
    url: 'basics/country/delete',
    method: 'post',
    data: data
  })
}

// 客户列表
export function providerList(data) {
  return request({
    url: 'basics/provider/index',
    method: 'post',
    data: data
  })
}

// 客户添加
export function providerAdd(data) {
  return request({
    url: 'basics/provider/create',
    method: 'post',
    data: data
  })
}

// 客户修改
export function providerEdit(data) {
  return request({
    url: 'basics/provider/update',
    method: 'post',
    data: data
  })
}

// 客户删除
export function providerDel(data) {
  return request({
    url: 'basics/provider/delete',
    method: 'post',
    data: data
  })
}

// 客户角色删除
export function partList(data) {
  return request({
    url: 'basics/provider/part',
    method: 'post',
    data: data
  })
}

// 客户信息
export function getProvider(data) {
  return request({
    url: 'basics/provider/getProvider',
    method: 'post',
    data: data
  })
}

// 业务类型 列表
export function businesstypeList(data) {
  return request({
    url: 'basics/businessType/index',
    method: 'post',
    data: data
  })
}

// 获取业务类型
export function getBusinessType(data) {
  return request({
    url: 'basics/businessType/getBusinessType',
    method: 'post',
    data: data
  })
}

// 业务类型 添加
export function businesstypeAdd(data) {
  return request({
    url: 'basics/businessType/create',
    method: 'post',
    data: data
  })
}

// 业务类型 修改
export function businesstypeEdit(data) {
  return request({
    url: 'basics/businessType/update',
    method: 'post',
    data: data
  })
}

// 业务类型 删除
export function businesstypeDel(data) {
  return request({
    url: 'basics/businessType/delete',
    method: 'post',
    data: data
  })
}

// 跟进人列表
export function followList(data) {
  return request({
    url: 'basics/follow/index',
    method: 'post',
    data: data
  })
}

// 跟进人添加
export function followAdd(data) {
  return request({
    url: 'basics/follow/create',
    method: 'post',
    data: data
  })
}

// 跟进人修改
export function followEdit(data) {
  return request({
    url: 'basics/follow/update',
    method: 'post',
    data: data
  })
}

// 跟进人删除
export function followDel(data) {
  return request({
    url: 'basics/follow/delete',
    method: 'post',
    data: data
  })
}

// 获取跟进人
export function getFollow(data) {
  return request({
    url: 'basics/follow/getFollow',
    method: 'post',
    data: data
  })
}

// 获取所有供应商
export function getSupplier(data) {
  return request({
    url: 'basics/provider/getSupplier',
    method: 'get',
    params: data
  })
}
// 获取所有制造商
export function getManufacturer(data) {
  return request({
    url: 'basics/provider/getManufacturer',
    method: 'get',
    params: data
  })
}

// 公众号列表
export function officialList(data) {
  return request({
    url: '/basics/official',
    method: 'get',
    params: data
  })
}

// 公众号创建
export function createOfficial(data) {
  return request({
    url: '/basics/official',
    method: 'post',
    data
  })
}

// 公众号修改
export function editOfficial(id, data) {
  return request({
    url: '/basics/official/' + id,
    method: 'put',
    data
  })
}

// 公众号删除
export function deleteOfficial(id) {
  return request({
    url: '/basics/official/' + id,
    method: 'delete'
  })
}

// 公众号同步文章
export function remoteOfficial(id) {
  return request({
    url: '/basics/official/remote/' + id,
    method: 'post'
  })
}

// 公众号日志列表
export function officialLogList(data) {
  return request({
    url: '/basics/officialLog',
    method: 'get',
    params: data
  })
}

// 检查微信登录状态
export function checkWeixinLoginStatus() {
  return request({
    url: '/basics/officialLog/checkLoginStatus',
    method: 'get'
  })
}

// 获取微信登录二维码
export function getWeixinLoginQrcode() {
  return request({
    url: '/basics/officialLog/getLoginQrcode',
    method: 'post'
  })
}

// 检查微信扫码状态
export function checkWeixinScanStatus() {
  return request({
    url: '/basics/officialLog/checkScanStatus',
    method: 'post'
  })
}

// 新闻网列表
export function newsWebsiteList(data) {
  return request({
    url: '/basics/newsWebsite',
    method: 'get',
    params: data
  })
}

// 新闻网禁用启用状态修改
export function newsWebsiteDisOrEnable(id) {
  return request({
    url: '/basics/newsWebsite/disOrEnable/' + id,
    method: 'get'
  })
}


// 公众号标签列表
export function officialTagsList(data) {
  return request({
    url: '/basics/officialTags',
    method: 'get',
    params: data
  })
}

// 公众号标签创建
export function createOfficialTags(data) {
  return request({
    url: '/basics/officialTags',
    method: 'post',
    data
  })
}

// 公众号标签修改
export function editOfficialTags( data) {
  return request({
    url: '/basics/officialTags',
    method: 'put',
    data
  })
}

// 公众号标签删除
export function deleteOfficialTags(data) {
  return request({
    url: '/basics/officialTags',
    method: 'delete',
    data
  })
}
